package com.infore.authorityManagement.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.infore.authorityManagement.entity.SysRole;

public interface ISysRoleRepository extends JpaRepository<SysRole, String> {
    
    List<SysRole> findByRoleNameLike(String roleName);
    
    Page<SysRole> findByRoleNameLike(String roleName, Pageable pageable);
    
    Page<SysRole> findAll(Pageable pageable);
    
    SysRole findByRoleName(String roleName);
    
    SysRole findByRoleIdNotAndRoleName(String roleId, String roleName);
}
